﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _36 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "LoginType",
                table: "Class_Dynamic",
                type: "int",
                nullable: true,
                comment: "家长或老师标识");

            migrationBuilder.AddColumn<int>(
                name: "Relationship",
                table: "Class_Dynamic",
                type: "int",
                nullable: true,
                comment: "家属关系");

            migrationBuilder.AddColumn<Guid>(
                name: "RelationshipChildrenId",
                table: "Class_Dynamic",
                type: "char(36)",
                nullable: true,
                comment: "关联幼儿Id",
                collation: "ascii_general_ci");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "LoginType",
                table: "Class_Dynamic");

            migrationBuilder.DropColumn(
                name: "Relationship",
                table: "Class_Dynamic");

            migrationBuilder.DropColumn(
                name: "RelationshipChildrenId",
                table: "Class_Dynamic");
        }
    }
}
